<?php 
	echo $this->Html->script(array(
		'/plugins/jquery-migrate-1.2.1.min',
		'/plugins/bootstrap/js/bootstrap.min',
		'/plugins/back-to-top',
		'/plugins/bxslider/jquery.bxslider',
		'/plugins/fancybox/source/jquery.fancybox.pack',
		'/plugins/hover-dropdown',
		'/plugins/revolution_slider/rs-plugin/js/jquery.themepunch.plugins.min',
		'/plugins/revolution_slider/rs-plugin/js/jquery.themepunch.revolution.min'
	));
	if ($this->request->controller == 'contact') {
		echo '<script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script>' .  $this->Html->script(array(
			'/plugins/gmaps/gmaps',
			'contact-us'
		));
	}
?>

<!--[if lt IE 9]>
    <?php echo $this->Html->script('../plugins/respond.min'); ?>  
<![endif]--> 

<?php 
	echo $this->Html->script(array(
		'app',
		'index'
	));
?>
<script type="text/javascript">
    jQuery(document).ready(function() {
        App.init();
        <?php if ($this->request->controller == 'contact') {echo 'ContactUs.init();';} ?>    
        App.initBxSlider();
        Index.initRevolutionSlider();                    
    });
</script>